import { MessageType } from "./Message";
import MessageCenter from "./MessageCenter";

const {ccclass, property} = cc._decorator;

@ccclass
export default class playerControl01 extends cc.Component {
    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    start () {
        // 点击，血量减少
        this.node.on(cc.Node.EventType.TOUCH_START, (event)=>{
            // 血量减少
            MessageCenter.SendCustomMsg(MessageType.Type_UI, MessageType.UI_RefreshHP, '血量减少');
        })
    }

    // update (dt) {}
}
